package com.friday.dao;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.friday.bean.Inquiry;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface InquiryDao {


    JSONObject getInquiryById(int id);

    JSONObject getShowInquiryById(int id);

    JSONArray getAllShowInquiry();

    JSONArray getShowInquiryDtlById(int id);

    JSONArray getAllmatchInquiry(int id,String authority);

    JSONArray matchInquiry(int id,String authority);

    JSONObject getInquiryByQuo(int quotation_id);

    int addInquiry(JSONObject inquiry);

    int addInquirydtl(JSONObject inquirydtl);

    int setTransRate(int inquiry_id, int goods_id, int trans_rate);

    int changeStatus(int id, String status);

    int delInquiry(int id);

    int delInquirydtl(int inquiry_id);

    int setInquiry(JSONObject inquiry);

    JSONArray getAgentInquiry(int id);

    float getTotalExp(int id);


}
